package cn.stylefeng.guns.modular.order.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.order.entity.OutOrderDetailed;
import cn.stylefeng.guns.modular.order.model.params.OutOrderDetailedParam;
import cn.stylefeng.guns.modular.order.model.result.OutOrderDetailedResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 出库订单明细表 服务类
 */
public interface OutOrderDetailedService extends IService<OutOrderDetailed> {

    /**
     * 新增
     *
     * @author hu
     * @Date 2019-07-08
     */
    void add(OutOrderDetailedParam param);

    /**
     * 删除
     *
     * @author hu
     * @Date 2019-07-08
     */
    void delete(OutOrderDetailedParam param);

    /**
     * 更新
     *
     * @author hu
     * @Date 2019-07-08
     */
    void update(OutOrderDetailedParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author hu
     * @Date 2019-07-08
     */
    OutOrderDetailedResult findBySpec(OutOrderDetailedParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author hu
     * @Date 2019-07-08
     */
    List<OutOrderDetailedResult> findListBySpec(OutOrderDetailedParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author hu
     * @Date 2019-07-08
     */
     LayuiPageInfo findPageBySpec(OutOrderDetailedParam param, String condition);

	List<OutOrderDetailedResult> findListGroupGoodsidBySpec(OutOrderDetailedParam outParam);
	
	/**
	 * 批量保存list
	 * @param List<OutOrderDetailedParam>
	 * @return
	 */
	boolean saveBatchList(List<OutOrderDetailedParam> list);

	List<OutOrderDetailedResult> findListBySpecsss(OutOrderDetailedParam outOrderDetailedParam);

	List<OutOrderDetailedResult> findOrderDetailsBystorageOutNumber(OutOrderDetailedParam param,
			String[] strs);


}
